gtk/gtkwindow.c: Fix build on non-X11
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 26 Aug 2013 04:12:57 +0000 (12:12 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 26 Aug 2013 13:32:09 +0000 (21:32 +0800)
There were some code added to this file that is meant for the X11 backend,
but they are being unconditionally built.  Add build-time checks for the
X11 backend for these to fix the build on non-X11 platforms.

gtk/gtkwindow.c

index 363654eb5a9c8a7f7fdebc5f2771a6f40805bcf6..434b2fee1f06e7235369281ffdde35663ae1fc10 100644 (file)
@@ -7887,6 +7887,7 @@ ontop_window_clicked (GtkMenuItem *menuitem,
   gtk_window_set_keep_above (window, !window->priv->above_initially);
 }
 
+#ifdef GDK_WINDOWING_X11
 static void
 stick_window_clicked (GtkMenuItem *menuitem,
                       gpointer     user_data)
@@ -7917,6 +7918,7 @@ workspace_change_clicked (GtkMenuItem *menuitem,
   desktop = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (menuitem), "workspace"));
   gdk_x11_window_move_to_desktop (gdk_window, desktop);
 }
+#endif
 
 static void
 close_window_clicked (GtkMenuItem *menuitem,